package com.render.gui;

import org.lwjgl.opengl.GL11;

import base.common.IInput;
import base.render.Render;
import base.render.gui.Gui;

public abstract class GuiStreak extends Gui implements IInput
{
	protected int width;
	protected int height;

	protected float posX;
	protected float posY;
	protected float flySpeed;

	protected int streakColor;

	public GuiStreak()
	{
		this.resetStreak();
	}

	/**Reset and randomize streak*/
	protected abstract void resetStreak();

	@Override
	public void onRender()
	{
		GL11.glPushMatrix();
		Render.drawWithColor(this.streakColor);
		Render.drawBox(this.posX, this.posY, width, height);
		GL11.glPopMatrix();
	}

	/**Set streak to specific color*/
	public void setStreakColor(int par1)
	{
		this.streakColor = par1;
	}
}
